package com.medical.enums;

import lombok.Getter;

import java.util.concurrent.TimeUnit;

/**
 * @author TISNIW
 * @version 1.0
 * @date 2024/7/3 0:12
 * @desc
 */
@Getter
public enum TimeEnum {
    //1秒
    ONE_SECOND(1, TimeUnit.SECONDS),
    //5秒
    FIVE_SECOND(5, TimeUnit.SECONDS),
    //10秒
    TEN_SECOND(10, TimeUnit.SECONDS),
    //30秒
    THIRTY_SECOND(30, TimeUnit.SECONDS),
    //1分钟
    ONE_MINUTE(1, TimeUnit.MINUTES),
    //5分钟
    FIVE_MINUTE(5, TimeUnit.MINUTES),
    //10分钟
    TEN_MINUTE(10, TimeUnit.MINUTES),
    //30分钟
    THIRTY_MINUTE(30, TimeUnit.MINUTES),
    //1小时
    ONE_HOUR(1, TimeUnit.HOURS),
    //2小时
    TWO_HOUR(2, TimeUnit.HOURS),
    //3小时
    THREE_HOUR(3, TimeUnit.HOURS),
    //4小时
    FOUR_HOUR(4, TimeUnit.HOURS),
    //5小时
    FIVE_HOUR(5, TimeUnit.HOURS),
    //6小时
    SIX_HOUR(6, TimeUnit.HOURS),
    //12小时
    TWELVE_HOUR(12, TimeUnit.HOURS),
    //1天
    ONE_DAY(1, TimeUnit.DAYS),
    //2天
    TWO_DAY(2, TimeUnit.DAYS),
    //3天
    THREE_DAY(3, TimeUnit.DAYS),
    //7天
    SEVEN_DAY(7, TimeUnit.DAYS),
    //14天
    FOURTEEN_DAY(14, TimeUnit.DAYS),
    //30天
    THIRTY_DAY(30, TimeUnit.DAYS);

    private int timeout;
    private TimeUnit unit;
    TimeEnum(int timeout, TimeUnit unit) {
        this.timeout = timeout;
        this.unit = unit;
    }
}
